home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Freelog 55
/
Freelog055.iso
/
Bas
/
Screen-Saver
/
Tocs
/
tocs.exe
/
Movie.swf
/
scripts
/
DefineSprite_20
/
frame_1
/
PlaceObject2_19_1
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2002-02-25
|
960b
|
35 lines
onClipEvent(enterFrame){
curTime = new date();
if(9990 < math.abs(_parent.timeZone))
{
curHours = curTime.getHours();
curMinutes = curTime.getMinutes();
}
else
{
tMinutes = curTime.getUTCMinutes() + zoneMinutes;
curMinutes = tMinutes >= 0 ? tMinutes % 60 : tMinutes + 60;
curHours = (curTime.getUTCHours() + zoneHours + math.floor(tminutes / 60) + 24) % 24;
}
if(curHours >= 12)
{
shcolor.setRGB(16711680);
curHours = curhours - 12;
}
else
{
shcolor.setRGB(11141375);
}
curSeconds = curTime.getSeconds();
MSecond = curTime.getMilliSeconds();
hourHand._x = 0;
hourHand._y = 0;
hourHand._rotation = curHours * 30 + curMinutes / 2;
minuteHand._x = 0;
minuteHand._y = 0;
minuteHand._rotation = curMinutes * 6;
secondHand._x = 0;
secondHand._y = 0;
secondHand._rotation = curSeconds * 6 + 6 * mSecond / 1000;
}